package com.example.map.myapplication.fragmentdemo1;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.example.map.myapplication.R;

/**
 * Created by qundui on 2017/5/26.
 */

public class Demo extends FragmentActivity  {
//    final String[] rightData={"第一页内容","第二页内容","第三页内容"};
//    private B mb;
    // 得到AFragment 的消息并处理B  Fragment 处理 执行一些更新UI 等操作
//    private Handler handle=new Handler(){
//        @Override
//        public void handleMessage(Message msg) {
//              mb.getTv().setText(rightData[msg.what]);
//            super.handleMessage(msg);
//        }
//    };
   @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.demo1);
//        mb= (B) getSupportFragmentManager().findFragmentById(R.id.b);

    }
//    public Handler getHandle() {
//        return handle;
//    }

//    @Override
//    public void SwichPos(int pos) {
//        mb.getTv().setText(rightData[pos]);
//
//    }
}
